package org.ricks.condition1;

import org.ricks.condition1.event.LevelUpEvent;

public class MaxLevelStrategy implements ProgressUpdateStrategy<LevelUpEvent> {
    @Override
    public int update(int currentValue, LevelUpEvent event) {
        return Math.max(currentValue, event.newLevel());
    }
}
